package com.analyse.stock.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PickStockVO implements Serializable {

    /**
     * 股票代码 例如：600519（贵州茅台）、AAPL（苹果）。
     **/
    private String stockCode;

    private String stockName;

    /**
     * 净买入（万元）
     **/
    private BigDecimal buyAmt;

    /**
     * 行业板块名称
     **/
    private String boardCode;
    private String boardName;

    //换手率
    private BigDecimal exchangeRate;

    //最新价格
    private BigDecimal price;

    //最新涨跌幅
    private BigDecimal upDownPercent;

    private List<AnomalVO> anomalyDates;

    public static PickStockVO me(String stockCode,String stockName,List<AnomalVO> anomalyDates){
        PickStockVO vo = new PickStockVO();
        vo.stockCode = stockCode;
        vo.stockName = stockName;
        vo.anomalyDates = anomalyDates;
        return vo;
    }
}
